package com.ls.hnks.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ls.hnks.model.CustomerReservedContact;
import com.ls.hnks.service.CustomerReservedContactService;
import com.ls.hnks.mapper.CustomerReservedContactMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 15375
* @description 针对表【tb_customer_reserved_contact(客户备份联系方式)】的数据库操作Service实现
* @createDate 2023-01-25 21:57:58
*/
@Service
public class CustomerReservedContactServiceImpl extends ServiceImpl<CustomerReservedContactMapper, CustomerReservedContact>
    implements CustomerReservedContactService{

    @Autowired
    private CustomerReservedContactMapper customerReservedContactMapper;

    @Override
    public List<CustomerReservedContact> getContractsByCustomerId(String id) {
        QueryWrapper<CustomerReservedContact> contactQueryWrapper = new QueryWrapper<>();
        contactQueryWrapper.eq("CustomerID",id);
        return customerReservedContactMapper.selectList(contactQueryWrapper);
    }
}




